package com.zhentao.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.model.dto.system.SysUserDto;
import com.zhentao.model.entity.system.SysUser;

import java.util.List;

/**
* @author 懒阳阳
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2025-02-08 14:45:04
* @Entity com.zhentao.domain.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    SysUser selectByUserName(String userName);

    //分页查询用户
    List<SysUser> findByPage(SysUserDto sysUserDto);

    //添加用户
    SysUser findByUserName(String username);

    //添加用户
    void saveSysUser(SysUser sysUser);

    //修改用户
    void updateSysUser(SysUser sysUser);

    //删除用户
    void deleteUserById(Long userId);
}




